package com.chris.blog.service;

import com.chris.blog.entity.po.QuestionPO;
import com.github.pagehelper.Page;

public interface QuestionService{


    int deleteByPrimaryKey(Integer id);

    int insert(QuestionPO record);

    int insertSelective(QuestionPO record);

    QuestionPO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(QuestionPO record);

    int updateByPrimaryKey(QuestionPO record);

    Page<QuestionPO> findAllDesc();

    Page<QuestionPO> findAllByCIdDesc(Integer cid);

    QuestionPO findOneByQid(Long qid);

    int count(String uid);

    Page<QuestionPO> findAllByUidDesc(String uid);
}
